package com.le.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_user")
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer uid;

    private String uname;
    private String upass;
    private String head;

    private String regtime; // 将数据表中的dateTime型转为 String

    private GenderType gender; // 用了枚举

    @TableField(select = false) // 验证码，mubatisplus 在做操作时忽略
    private String code;
}
